package fr.ensai.tp1.model;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

@Entity
@DiscriminatorValue("moto")
public class Moto extends Vehicule {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3093739031189749969L;
	
	private int cylindree;
	

	public String toString(){
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int getCylindree() {
		return cylindree;
	}

	public void setCylindree(int cylindree) {
		this.cylindree = cylindree;
	}
}
